<div id="wrapper">
  <div id="kong" *ngIf="false">
    <img src="../../assets/shopcar/cat_01.png" alt="">
    <h4>您的购物车是空的</h4>
    <a [routerLink]="['/toHome']">点去首页看看</a>
  </div>
  <div id="car">
    <div id="car-title">
      <img src="../../assets/shopcar/img_62.png" alt="">
      <span>购物车</span>
    </div>
    <table>
      <tr id="table-title">
        <th><input type="checkbox" (click)="doClick($event)"></th>
        <th>礼拜五生鲜</th>
        <th>规格</th>
        <th>数量</th>
        <th>单价</th>
        <th>金额</th>
        <th>操作</th>
      </tr>
      <tr *ngFor="let obj of dataSo" class="shop-product">
        <td><input type="checkbox" [checked]="isstart"></td>
        <td class="imgTitle">
          <a href=""><img [src]="obj.img" alt=""></a>
          <span>{{obj.title}}</span>
        </td>
        <td>{{obj.gui}}</td>
        <td class="num">
          <span (click)="doCHao(obj)">-</span><span>{{obj.num}}</span><span (click)="doCJia(obj)">+</span>
        </td>
        <td>{{obj.price}}</td>
        <td>{{obj.total | currency: 'CNY': 'true': '1.2-2'}}</td>
        <td (click)="dodelete(obj)">删除</td>
      </tr>
      <tr id="table-bottom">
        <td colspan="7">
          商品总额
          <span>{{doprice() | currency: 'CNY': 'true': '2.2-2'}}</span>
        </td>
      </tr>
    </table>
    <div id="total">
      <div id="left">
        <a (click)="doClikbool()">全选</a>
        <a href="">批量删除</a>
      </div>
      <div id="right">
        <span>商品总计:</span>
        <span>{{doprice() | currency: 'CNY': 'true': '2.2-2'}}</span>
        <a href="">立即购买</a>
      </div>
    </div>
  </div>
</div>
